package com.mdinfo.gw.door.doorDriver.aopu.request;

import com.mdinfo.base.utils.StringUtil;
import lombok.Data;

import java.util.Date;

/**
 * Created by Administrator on 2018/2/5.
 * 注册门禁
 */
@Data
public class MJAddReq extends BaseReq {

    private String mjIP;
    private Integer mjPort;
    private String mjMode;

    public MJAddReq(Integer mjno, String mjIP, Integer mjPort, String mjMode){
        this.setCmd("addMJ");
        this.setTrace(StringUtil.getUUid());
        this.setTimeStamp(new Date().getTime());
        this.setMjno(mjno);
        this.setDrno(0);
        this.setMjIP(mjIP);
        this.setMjPort(mjPort);
        this.setMjMode(mjMode);
    }
}
